package HashMap;

import java.util.HashMap;
import java.util.Map;

public class Example {
    public static void main(String[] args) {
        Map<String, Integer> map = new HashMap<>();
        map.put("key1", 1);
        map.put("key2", 2);
        for (Map.Entry<String, Integer> entry : map.entrySet()) {
            System.out.println((entry.getKey() + " : " + entry.getValue()));
        }
    }
}
